<?php define('MAIN',md5(PROJECT_CODE."MAIN")); ?>
<!DOCTYPE html>
<html lang="id">
<head>
	<title><?php echo PROJECT_NAME ;?></title>
	<meta charset="utf-8">
	<meta content='id' http-equiv='Content-Language'/>
	<meta content='<?php echo PROJECT_NAME ;?>' name='description'/>
	<meta content='INDEX,NOFOLLOW' name='robots'/>
	<meta content='<?php echo PROJECT_NAME ;?>' name='keywords'/>
	<meta content='1 days' name='revisit-after'/>
	<meta content='1 days' name='revisit'/>
	<link href='#' rel='shortcut icon'/>
	
	<?php
		// ASSETS //;
		echo js_asset('jquery-1.8.3.min.js','jquery-ui-bootstrap');
		echo js_asset('jquery-ui-1.9.2.custom.min.js','jquery-ui-bootstrap');
		echo js_asset('jquery.jqGrid.src.js','jquery.jqGrid-4.5.2');
		echo js_asset('i18n/grid.locale-en.js','jquery.jqGrid-4.5.2');
		echo js_asset('jquery.fmatter.js','jquery.jqGrid-4.5.2');
		echo js_asset('bootstrap.js','bootstrap');
		echo js_asset('navbar.js');
		echo js_asset('script.js');
		echo js_asset('jquery.formatCurrency-1.4.0.js');
		echo js_asset('chosen.jquery.js','chosen'); 
		
		echo css_asset('bootstrap.css','bootstrap');
		echo css_asset('bootstrap-responsive.min.css','bootstrap');
		echo css_asset('bootstrap-custom.css','bootstrap');
		echo css_asset('jquery-ui-1.10.0.custom.css','jquery-ui-bootstrap');
		echo css_asset('ui.jqgrid.css','jquery.jqGrid-4.5.2');
		echo css_asset('chosen.css','chosen');
		
		echo css_asset('style.css');
		echo css_asset('heading.css');
		echo css_asset('color.css');
		echo css_asset('font.css');
		echo css_asset('align.css');
		echo css_asset('icon.css');
	?>
	<script>
	// <!--
		/* function */
		function c_setupLoad(){
				href = $("#c_setup ul li.active a").attr("href");
				$("div"+href+".tab-pane").addClass("active");
				console.log("div"+href+".tab-pane");
		
		}
		function loadContent(controller,fungsi,param){
			if (typeof(fungsi) == "undefined") fungsi = "";
			if (typeof(param) == "undefined") param = "";
			baseUrl = '<?php echo base_url(); ?>';
			if (fungsi != "") {
				Url = baseUrl+controller+"/"+fungsi+"/"+param;
				Id = controller+"_"+fungsi+param;
			}else{
				Url = baseUrl+controller;
				Id = controller;
			}
			if($("#"+Id).length < 1 ){
			console.log($("#"+Id).length);
			console.log(Url);
				$("#tabs-content").append("<div class='tab-pane in' id='"+Id+"'><p> Loading content ...</p></div>");
			}
			$("#"+Id).load(Url);
			if (controller == 'c_setup'){
				setTimeout("c_setupLoad()",1000);
			}
		}
		
		$(function(){
			/* declarisasi */
			
			/* event */
			
			
		});
	// -->
	</script>
</head>
<body data-twttr-rendered="true" data-spy="scroll" data-target=".bs-docs-sidebar">

<div class="header">

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span2 center">
				<?php echo image_asset('logo.png','',array('class'=>'header-image','alt'=>PROJECT_NAME,'title'=>PROJECT_NAME)); ?>
			</div>

			<div class="span10">
			<div class="header-title color1 h4">Sistem Monitoring Tender PT. PP</div>


			</div>
		</div>
	</div>
</div>
<div class="container-fluid">

<p>&nbsp;</p>
	<div class="row-fluid">
      <div class="span3 bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav" id="nav-menu">
          <li><a href="#c_entry" data-toggle="tab" class="active" onClick="loadContent('c_entry')"><i class="icon-chevron-right"></i>Entry</a></li>
          <li><a href="#c_setup" data-toggle="tab" onClick="loadContent('c_setup')"><i class="icon-chevron-right"></i>Setup</a></li>
  
				<li><a href="#c_laporan_detail" data-toggle="tab" onClick="loadContent('c_laporan','detail')"><i class="icon-chevron-right"></i>Laporan Detail Jadwal </a></li>
				<li><a href="#c_laporan_pic" data-toggle="tab" onClick="loadContent('c_laporan','pic')"><i class="icon-chevron-right"></i>Laporan Jadwal Staff</a></li>
				<li><a href="#c_laporan_rekap" data-toggle="tab" onClick="loadContent('c_laporan','rekap')"><i class="icon-chevron-right"></i>Laporan Timeline Staff</a></li>
				<li><a href="#c_laporan_printformhasil" data-toggle="tab" onClick="loadContent('c_laporan','printform','hasil')"><i class="icon-chevron-right"></i>Laporan Hasil Tender</a></li>
				<li><a href="#c_laporan_printformmasterlist" data-toggle="tab" onClick="loadContent('c_laporan','printform','masterlist')"><i class="icon-chevron-right"></i>Laporan Master List</a></li>
				<li><a href="#c_laporan_pq" data-toggle="tab" onClick="loadContent('c_laporan','pq')"><i class="icon-chevron-right"></i>Laporan Tender PQ</a></li>
		
          <li><a href="#c_jadwal" data-toggle="tab" onClick="loadContent('c_jadwal')"><i class="icon-chevron-right"></i>List Jadwal</a></li>
		  <li><a href="<?php echo base_url(); ?>c_login/logout" ><i class="icon-chevron-right"></i>Logout</a></li>
         </ul>
      </div>
		
		<div class="span9" id="main-content">
			<div id="content" >
				<div id="tabs-content"  class="tab-content">
					<div class="tab-pane in active" id="c_entry"><p><?php echo @$entry; ?></p></div>
					<!-- div class="tab-pane in" id="c_setup"><p> Loading content setup...</p></div>
					<div class="tab-pane in" id="c_entry"><p> Loading content entry...</p></div>
					<div class="tab-pane in" id="c_laporan"><p> Loading content laporan...</p></div -->
				</div>
			</div>
		</div>
		<p>&nbsp;</p>
	</div>
</div>

<div class="navbar footer" >
	<div >
		<center>Sistem Monitoring Anggaran<br /> &copy; 2013</center>
	</div>
</div>

</body>
</html>